	$(function(){
        //按钮单击时执行
        $("#taobaoke_getid_do").click(function(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}
			//输入验证
			var bot_id = $('#bot_id').val();
			var taobaoke_getid_from = $('#taobaoke_getid_from').val();
			var taobaoke_getid_beizhu = $('#taobaoke_getid_beizhu').val();
            //Ajax调用处理
            var taobaoke_getid = $.ajax({
               type: "POST",
               url: "plus.php?m=taobaoke&c=taobaoke_home&a=taobaoke_getid_do",
               data: "bot_id="+bot_id+"&taobaoke_getid_from="+taobaoke_getid_from+"&taobaoke_getid_beizhu="+taobaoke_getid_beizhu,
               async: false
            }).responseText;
			if (taobaoke_getid == "1"){
				toastr.info("邀请码不存在，请修改后重新申请！");
			} else if (taobaoke_getid == "2") {
				toastr.success("申请失败，申请已经存在，请勿重复申请！");
			} else if (taobaoke_getid == "3") {
				toastr.success("申请成功，请耐心等待管理员审核！");
			} else {
				toastr.error("请勿提交非法数据！");
			}
         });		 
    });